﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using lumo.display.object2D;
using lumo.display.animation2D;

namespace lumo.display.gui
{
    /// <summary>
    /// A vertical command list.
    /// </summary>
    public class VerticalCommandList : PositionableCommandListBase
    {
        /// <summary>Height of each item.</summary>
        public int ItemHeight = 32;

        /// <summary>
        /// Get the item offset.
        /// </summary>
        /// <param name="Index">Index of the item.</param>
        /// <returns>The offset.</returns>
        protected override Vector2 GetItemOffset(int Index)
        {
            return new Vector2(0, Index * ItemHeight);
        }
    }
}
